﻿using Assets.Scripts.DL.Enemy.CommonEnemy;
namespace Assets.Scripts.DL.Enemy.SpriderBoss {
	public class SpiderBossCommonHFSM : CommonEnemy.CommonHFSM {
		public SpiderBossCommonHFSM(Controller controller, StateEnum stateName) : base(controller, stateName) {
			AddConditionToSelf(() => true);

			AddNewTransition(StateEnum.AtkHFSM, () => CommonAtkCondition || _controller.CheckSpecialCd());
			AddNewTransition(StateEnum.SpecialHFSM, () => _controller.StateData.IsSpecialState);

		}
		bool CommonAtkCondition => _controller.IsPlayerInAtkRange() && _controller.CanAtk();
	}
}
